package org.yinweichen.llm_dataset_backend.entity;

import jakarta.persistence.*;
import lombok.*;
import java.util.Date;

@Data
@Entity
@Table(name = "version")
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class Version {
    @Id
    @Column(name = "ver_code")
    private String ver_code;

    @Column(name = "description", nullable = false, length = 255)
    private String description;

    @Column(name = "time")
    @Temporal(TemporalType.TIMESTAMP)
    private Date time;

    @Column(name = "published", nullable = false, columnDefinition = "BOOLEAN DEFAULT false")
    private Boolean published = false;
}
